package com.kaluli.project.repository.impl;

import com.kaluli.project.domain.entity.KllOrderVirtual;
import com.kaluli.project.domain.repository.KllOrderVirtualRepository;
import com.kaluli.system.repository.AbstractRepositorySupport;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class KllOrderVirtualRepositoryImpl extends AbstractRepositorySupport<KllOrderVirtual> implements KllOrderVirtualRepository{

	@Override
	protected Class<KllOrderVirtual> getEntityClass() {
		// TODO Auto-generated method stub
		return KllOrderVirtual.class;
	}

	@Override
	public List<KllOrderVirtual> findByOrderNumber(String orderNumber) {
		
		StringBuffer hql=new StringBuffer(" from KllOrderVirtual t  where t.orderNumber=:orderNumber  ");
		Map<String,Object> params=new HashMap<String, Object>();
		params.put("orderNumber", orderNumber);
		return this.findHqlForMap(hql.toString(), params);
	}


	
	

}
